package com.tarry.observer;

/**
 *
 */
public class MyObserverTest {
    public static void main(String[] args) {
        TeacherSubject teacherSubject = new TeacherSubject();
        StudentObserver tom = new StudentObserver(teacherSubject,"tom");
        StudentObserver jack = new StudentObserver(teacherSubject, "jack");
        StudentObserver tarry = new StudentObserver(teacherSubject, "tarry");
        teacherSubject.setHomeWork("背出师表");
    }
}
